package com.csun.cmny.provider.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class SetMeal implements Serializable {
    private Integer setMealId;

    private String setMealName;

    private BigDecimal beforeDis;

    private String discount;

    private BigDecimal afterDis;

    private Integer isEdit;

    private Integer homeId;

    private Integer valid;

    private Date createTime;

    private Date modifyTime;

    private Long modifier;

    private List<SetMealExpItem> setMealExpItemList;

    private static final long serialVersionUID = 1L;

    public Integer getSetMealId() {
        return setMealId;
    }

    public void setSetMealId(Integer setMealId) {
        this.setMealId = setMealId;
    }

    public String getSetMealName() {
        return setMealName;
    }

    public void setSetMealName(String setMealName) {
        this.setMealName = setMealName;
    }

    public BigDecimal getBeforeDis() {
        return beforeDis;
    }

    public void setBeforeDis(BigDecimal beforeDis) {
        this.beforeDis = beforeDis;
    }

    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }

    public BigDecimal getAfterDis() {
        return afterDis;
    }

    public void setAfterDis(BigDecimal afterDis) {
        this.afterDis = afterDis;
    }

    public Integer getIsEdit() {
        return isEdit;
    }

    public void setIsEdit(Integer isEdit) {
        this.isEdit = isEdit;
    }

    public Integer getHomeId() {
        return homeId;
    }

    public void setHomeId(Integer homeId) {
        this.homeId = homeId;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Long getModifier() {
        return modifier;
    }

    public void setModifier(Long modifier) {
        this.modifier = modifier;
    }

    public List<SetMealExpItem> getSetMealExpItemList() {
        return setMealExpItemList;
    }

    public void setSetMealExpItemList(List<SetMealExpItem> setMealExpItemList) {
        this.setMealExpItemList = setMealExpItemList;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SetMeal other = (SetMeal) that;
        return (this.getSetMealId() == null ? other.getSetMealId() == null : this.getSetMealId().equals(other.getSetMealId()))
            && (this.getSetMealName() == null ? other.getSetMealName() == null : this.getSetMealName().equals(other.getSetMealName()))
            && (this.getBeforeDis() == null ? other.getBeforeDis() == null : this.getBeforeDis().equals(other.getBeforeDis()))
            && (this.getDiscount() == null ? other.getDiscount() == null : this.getDiscount().equals(other.getDiscount()))
            && (this.getAfterDis() == null ? other.getAfterDis() == null : this.getAfterDis().equals(other.getAfterDis()))
            && (this.getIsEdit() == null ? other.getIsEdit() == null : this.getIsEdit().equals(other.getIsEdit()))
            && (this.getHomeId() == null ? other.getHomeId() == null : this.getHomeId().equals(other.getHomeId()))
            && (this.getValid() == null ? other.getValid() == null : this.getValid().equals(other.getValid()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()))
            && (this.getModifier() == null ? other.getModifier() == null : this.getModifier().equals(other.getModifier()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSetMealId() == null) ? 0 : getSetMealId().hashCode());
        result = prime * result + ((getSetMealName() == null) ? 0 : getSetMealName().hashCode());
        result = prime * result + ((getBeforeDis() == null) ? 0 : getBeforeDis().hashCode());
        result = prime * result + ((getDiscount() == null) ? 0 : getDiscount().hashCode());
        result = prime * result + ((getAfterDis() == null) ? 0 : getAfterDis().hashCode());
        result = prime * result + ((getIsEdit() == null) ? 0 : getIsEdit().hashCode());
        result = prime * result + ((getHomeId() == null) ? 0 : getHomeId().hashCode());
        result = prime * result + ((getValid() == null) ? 0 : getValid().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
        result = prime * result + ((getModifier() == null) ? 0 : getModifier().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", setMealId=").append(setMealId);
        sb.append(", setMealName=").append(setMealName);
        sb.append(", beforeDis=").append(beforeDis);
        sb.append(", discount=").append(discount);
        sb.append(", afterDis=").append(afterDis);
        sb.append(", isEdit=").append(isEdit);
        sb.append(", homeId=").append(homeId);
        sb.append(", valid=").append(valid);
        sb.append(", createTime=").append(createTime);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append(", modifier=").append(modifier);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}